import {createRouter,createWebHashHistory} from "vue-router"

const router = createRouter({
    history:createWebHashHistory(),
    routes: [
        { 
            path:"/",
            redirect: "/home"
        },
        {
            path: "/home",
            component: () =>import("@/views/home/Home.vue")
        },
        {
            path: "/favor",
            component: () =>import("@/views/favor/Favor.vue")
        },
        {
            path: "/order",
            component: () => import("@/views/order/Order.vue")
        },
        {
            path: "/message",
            component: () => import("@/views/message/Message.vue"),
            meta:{
                TabberNoShow: true
            }
        },
        {
            path:"/city",
            component:() => import("@/views/city/City.vue"),
            meta:{
                TabberNoShow: true
            }
        },
        {
            path:"/search",
            component:() => import("@/views/search/search.vue"),
            meta:{
                TabberNoShow: true
            }
        },
        {
            path:"/details/:id",
            component: () => import("@/views/details/details.vue"),
            meta:{
                TabberNoShow: true
            }
        }
    ]
})

export default router